/*
 * 版权所有(c)  1952110078@qq.com  2022 - 2022
 */

package com.ldc.module_main.net;

import com.google.gson.JsonObject;
import com.ldc.commonlibs.common.RspListModel;
import com.ldc.commonlibs.http.ApiService;
import com.ldc.module_main.model.DragonBollModel;
import com.ldc.module_main.model.FlowsModel;
import com.ldc.module_main.model.PersonalizedModel;
import com.ldc.module_main.model.UserPlayListModel;

import java.util.HashMap;
import java.util.Map;

import io.reactivex.rxjava3.core.Single;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;

/**
 * @author liudc
 * @since 2022/7/17 21:22
 */
public interface HttpService extends ApiService {

    /**
     * 每日推荐
     *
     * @return
     */
    @POST("/homepage/dragon/ball")
    Single<RspListModel<DragonBollModel>> dragonBoll();


    /**
     * 首页 轮播图
     *
     * @return
     */
    @POST("/banner")
    Single<JsonObject> banner();

    /**
     * 推荐歌单
     */
    @GET("/personalized?limit=10")
    Single<PersonalizedModel> personalized();

    /**
     * 获取用户歌单
     */
    @GET("/user/playlist")
    Single<UserPlayListModel> userPlay(@QueryMap Map<String, Object> map);

    /**
     * 用户关注列表
     */
    @GET("/user/follows")
    Single<FlowsModel> flows(@QueryMap HashMap<String, Object> uid);
}
